package PubSub;

/**
 * @author duanzhizhou
 * @date 2024/10/10
 */
public class NBAObserver implements Observer{
    private final String name;
    
    public NBAObserver(String name) {
        this.name = name;
    }
    
    @Override
    public void update(AbstractSubject sub) {
        System.out.println(sub.name + ": " + sub.status + ", " + name + "请关闭NBA，马上开始工作");
    }
}
